<?php

$query = "DELETE FROM permohonan_kursus WHERE `id`= ".sql_val($id);
$result = mysql_query($query) or die('<p class="db_error"><b>A fatal MySQL error occurred while trying to remove <b>'.reverb($_POST['id']).'</b> from the database.</b><br />Query: '.$query.'<br />Error: ('.mysql_errno().') '.mysql_error().'</p>'); 
if (mysql_affected_rows()) { $db_message = '<p class="db_success">Successfully removed  : '.reverb($_POST['nama']).'</b> from the database!!</p>'; }
else { $db_message = '<p class="db_error">Not able to remove  : '.reverb($nama).'</b> from the database!!</p>'; }

?>